.action_links
  - if current_user.admin? 
    - Transaction::STATES.each do |key, value|
      = link_to t(".#{key}"), update_status_path(id: transaction.id, status: value), method: :put
      = '|'
    = link_to t('.remind'), remind_path(id: transaction.id), method: :put
    = '|'
  - if current_user.id == transaction.user.id || current_user.admin?
    .destroy_link= link_to t('.destroy'), 
      book_transaction_path(book_id: transaction.book_id, id: transaction.id), 
      method: :delete, data: {confirm: "Are you sure?"}

